import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";
import { Result, ResultTable } from "@/api/types";
/** 获取系统管理-菜单管理列表 */
export const getMenuList = (data?: object) => {
  return http.request<Result>("post", baseUrlApi("menu"), { data });
};
/** 系统管理-菜单管理新增 */
export const saveMenu = (data?: object) => {
  return http.request<ResultTable>("post", baseUrlApi("saveMenu"), { data });
};
/**更新系统管理-菜单 */
export const updateMenu = (data?: object) => {

  return http.request<ResultTable>("put", baseUrlApi("menu"), { data });
};
/**删除系统管理-菜单 */
export const deleteMenu = (data?: object) => {
 
  return http.request<ResultTable>("delete", baseUrlApi("menu"), { data });
};